﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ClothingShopping.Dto.AccountDto
{
    public class UserDto
    {
        /// <summary>
        /// 用户id
        /// </summary>
        public int user_id { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string? user_name { get; set; }

        /// <summary>
        /// 性别（0男，1女
        /// </summary>
        public bool? SEX { get; set; } = false;

        /// <summary>
        /// 登录账号
        /// </summary>
        public string? login_name { get; set; }


        /// <summary>
        /// 微信openID
        /// </summary>
        public string? open_id { get; set; }

        /// <summary>
        /// 电子邮件
        /// </summary>
        public string? email { get; set; }

        /// <summary>
        /// 电话号码
        /// </summary>
        public string? phone { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? create_time { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string? modifier { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? mTime { get; set; }

        /// <summary>
        /// 登录时间
        /// </summary>
        public DateTime? login_time { get; set; }

        /// <summary>
        /// 上一次登录时间
        /// </summary>
        public DateTime? last_login_time { get; set; }

        /// <summary>
        /// 登录次数
        /// </summary>
        public int? count { get; set; }

        /// <summary>
        /// 密码错误次数
        /// </summary>
        public int? mmcwcs { get; set; }

        /// <summary>
        /// 状态（0：停用 1：启用）
        /// </summary>
        public char state { get; set; } = '1';
    }
}
